package com.wfg.blog.vo.params;

import lombok.Data;

@Data
/**分页类*/
public class PageParams {
    /**页数默认为1*/
    private int page = 1;

    /**条数默认为10*/
    private int pageSize = 10;
    /**图标id*/
    private Long categoryId;
    /**标签id*/
    private Long tagId;

    private String year;

    private String month;

    public String getMonth() {
        if (this.month != null&&this.month.length() ==1) {
            return "0"+this.month;
        }
        return this.month;
    }
}
